@extends('admin.layout.layout')


     @section('content')   
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">网关编辑</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>


<!--                 用户添加列表                                   -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        
                        <div class="panel-body">
                            <div class="row">
                         
                                <div class="col-lg-6 col-lg-offset-3">
                                  
                                 
                                  @if (count($errors) > 0)
                                        <div class="alert alert-danger">
                                            <ul>
                                                @foreach ($errors->all() as $error)
                                                    <li>{{ $error }}</li>
                                                @endforeach
                                            </ul>
                                        </div>
                                    @endif

                        

                                     @foreach($config as $k=>$v)
                                    <form role="form"  action="{{url('/admin/config/update')}}" method="post" enctype="multipart/form-data">
                                 
                                              
                                                <div class="form-group">
                                                    <label>网站标题</label>
                                                    <input class="form-control" name="title"  type="text" value="{{$v->title}}"> 
                                                </div>
                                               
                                                <div class="form-group">
                                                    <label>logo</label>
                                                    <input type="file" name="logo"   value="{{$v->logo}}">
                                                    <img src="/uploads/s_{{$v->logo}}" alt="">

                                               
                                                 <div class="form-group">
                                                    <label>网站描述</label>
                                                    <input class="form-control" name="des"  type="text" value="{{$v->des}}"> 
                                                </div>

                                                 <div class="form-group">
                                                    <label>联系方式</label>
                                                    <input class="form-control" name="call"  type="text" value="{{$v->call}}"> 
                                                </div>
                                                 <div class="form-group">
                                                    <label>备案号</label>
                                                    <input class="form-control" name="icpno"  type="text" value="{{$v->icpno}}"> 
                                                </div>
                                                <input type="hidden" name="id" value="{{$v->id}}">
                                            @endforeach

                                              
                                             {{csrf_field()}}


                                                <button class="btn btn-primary btn-lg btn-block">用户修改 </button>
                                        
                                      
                                    </form>   
                                </div>

                                <!-- /.col-lg-6 (nested) -->
                            </div>
                            <!-- /.row (nested) -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
@endsection
    